package com.learnyou.server.xingzuo.controller.web.impl;

import com.learnyou.server.xingzuo.controller.web.BehaviorResource;
import com.learnyou.server.xingzuo.dao.repository.service.IBehaviorService;
import com.learnyou.server.xingzuo.dto.paramDTO.BehaviorQueryDTO;
import com.learnyou.server.xingzuo.dto.resultDTO.BehaviorResultDTO;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
public class BehaviorController implements BehaviorResource {

    @Resource
    private IBehaviorService behaviorService;

    @Override
    public BehaviorResultDTO behaviorsOfDay(BehaviorQueryDTO behaviorQueryDTO) {
        return behaviorService.behaviorsOfDay(behaviorQueryDTO);
    }
}
